home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
3078B.ZIP
/
PGRUN991.ZIP
/
ATBLOCK.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1991-05-20
|
20KB
|
732 lines
; ******* ParaDraft Application ********
; Parametric Geomtry Program generated by PgPg!
; Authored by : User
; Application name : Block with a T slot
; Dated : Monday , 20-5-1991
; Started at : -- 16:49:58
; Finished at : -- 16:56:23
; ****************************************
(princ "\nParaDraft application generated on Monday , 20-5-1991 with Professional Version 1.0P")
(mode 0)(command "VSLIDE"(strcat *pgpg-dir* *pg-name*))
(setq ang9 nil ang21 nil L1 nil L2 nil L3 nil L4 nil L5 nil L6 nil L7 nil L8 nil L10 nil L11 nil L12 nil L13 nil L14 nil L15 nil L16 nil L17 nil L18 nil L19 nil L20 nil )
(take-value 'ang9 "ang9" 70.11119129)
(take-value 'ang21 "ang21" 40.10990078)
(take-value 'L1 "L1" 33.61156976)
(take-value 'L2 "L2" 41.77560024)
(take-value 'L3 "L3" 22.1305)
(take-value 'L4 "L4" 17.7045)
(take-value 'L5 "L5" 26.2697)
(take-value 'L6 "L6" 2.9775)
(take-value 'L7 "L7" 32.9475)
(take-value 'L8 "L8" 37.6771)
(take-value 'L10 "L10" 26.26973)
(take-value 'L11 "L11" 17.70446)
(take-value 'L12 "L12" 22.13052)
(take-value 'L13 "L13" 18.00001131)
(take-value 'L14 "L14" 28.00003773)
(take-value 'L15 "L15" 30.00001483)
(take-value 'L16 "L16" 78.00004097)
(take-value 'L17 "L17" 74.99997868)
(take-value 'L18 "L18" 173.60172)
(take-value 'L19 "L19" 56.47382)
(take-value 'L20 "L20" 237.1719)
(command "REDRAW")
(initget 1)
(setq refpt (getpoint "\nInsertion point :"))
(setq refangle (getval "\nInsertion angle:" 0.0))
(princ "Computing points ..please wait")
(setq *en*
(init refpt))(setq *dim-layer* "dim")(setq *cen-layer* "cen")
(setq err 0.0)
(command "COLOR""BYLAYER")
(command "DIM1""DIMASZ" 0.01 )
(command "DIM1""DIMTXT" 0.01 )
(setvar "CMDECHO" 0)(MAKE_LAYER "CEN" 2)(setq ANG9(D2R ANG9 ))
(setq ANG21(D2R ANG21 ))
(setq L22 (/ L3 2.0) )
(setq L23 L22 )
(setq L24 (/ L4 2.0) )
(setq L25 L24 )
(setq L26 (/ L5 2.0) )
(setq L27 L26 )
(setq L28 (/ L10 2.0) )
(setq L29 L28 )
(setq L30 (/ L11 2.0) )
(setq L31 L30 )
(setq L32 (/ L12 2.0) )
(setq L33 L32 )
(setq L34 (/ L15 2.0) )
(setq L35 L34 )
(setq L36 (/ L16 2.0) )
(setq L37 L36 )
(setq L38 (+ L17 L34 ) )
(setq L39 (- L17 L35 ) )
(setq L40 (+ L17 L36 ) )
(setq L41 (- L17 L37 ) )
(setq pt1(delta refpt
0.0
0.0
))
(setq pt57(polar
pt1
0.0
L6
))
(setq pt58(polar
pt1
0.0
L7
))
(setq pt59(polar
pt1
0.0
L8
))
(setq pt55(polar
pt1
1.57079633
L1
))
(setq pt14(delta refpt
( + (x-of pt1) L20)
(y-of pt1)
))
(setq pt15(delta refpt
( + (x-of pt1) L20)
( + (y-of pt1) L19)
))
(setq pt26(polar
pt1
1.57079633
L18
))
(setq pt46(delta refpt
( + (x-of pt1) L8)
( + (y-of pt1) L1)
))
(setq pt47(delta refpt
( + (x-of pt1) L7)
( + (y-of pt1) L1)
))
(setq pt60(polar
pt1
1.57079633
L19
))
(setq pt3(delta refpt
(x-of pt55)
( + (y-of pt55) L29)
))
(setq pt4(delta refpt
( + (x-of pt1) L6)
( + L33 (y-of pt55))
))
(setq pt5(delta refpt
( + (x-of pt1) L6)
( + L31 (y-of pt55))
))
(setq pt6(delta refpt
( + (x-of pt1) L7)
( + L31 (y-of pt55))
))
(setq pt7(delta refpt
( + (x-of pt1) L8)
( + L31 (y-of pt55))
))
(setq pt9(delta refpt
( + (x-of pt1) L8)
( + ( - L30 ) (y-of pt55))
))
(setq pt10(delta refpt
( + (x-of pt1) L7)
( + ( - L30 ) (y-of pt55))
))
(setq pt11(delta refpt
( + (x-of pt1) L6)
( + ( - L30 ) (y-of pt55))
))
(setq pt12(delta refpt
( + (x-of pt1) L6)
( + ( - L32 ) (y-of pt55))
))
(setq pt13(delta refpt
(x-of pt55)
( + (y-of pt55) ( - L28 ))
))
(setq pt40(delta refpt
( + (x-of pt1) L7)
( + ( - L32 ) (y-of pt55))
))
(setq pt41(delta refpt
( + (x-of pt1) L7)
( + L33 (y-of pt55))
))
(setq pt61(polar
pt15
(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))
( - L13 )
))
(setq pt54(polar
pt26
1.57079633
( - L2 )
))
(setq pt37(delta refpt
( + (x-of pt1) L7)
( + ( - L2 ) (y-of pt26))
))
(setq pt45(delta refpt
( + (x-of pt1) L8)
( + ( - L2 ) (y-of pt26))
))
(setq pt62(polar
pt61
(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))
( - L14 )
))
(setq pt2(delta refpt
(x-of pt54)
( + (y-of pt54) ( - L26 ))
))
(setq pt27(delta refpt
(x-of pt54)
( + (y-of pt54) L27)
))
(setq pt28(delta refpt
( + (x-of pt1) L6)
( + L23 (y-of pt54))
))
(setq pt29(delta refpt
( + (x-of pt1) L6)
( + L25 (y-of pt54))
))
(setq pt30(delta refpt
( + (x-of pt1) L7)
( + L25 (y-of pt54))
))
(setq pt31(delta refpt
( + (x-of pt1) L8)
( + L25 (y-of pt54))
))
(setq pt33(delta refpt
( + (x-of pt1) L8)
( + ( - L24 ) (y-of pt54))
))
(setq pt34(delta refpt
( + (x-of pt1) L7)
( + ( - L24 ) (y-of pt54))
))
(setq pt35(delta refpt
( + (x-of pt1) L6)
( + ( - L24 ) (y-of pt54))
))
(setq pt36(delta refpt
( + (x-of pt1) L6)
( + ( - L22 ) (y-of pt54))
))
(setq pt38(delta refpt
( + (x-of pt1) L7)
( + ( - L22 ) (y-of pt54))
))
(setq pt39(delta refpt
( + (x-of pt1) L7)
( + L23 (y-of pt54))
))
(setq pt8(intersect
(make-line pt9 (chg-quad ( + 0.0 ANG9
)) )
(make-line pt55 0.0 )
Nil
))
(setq pt25(intersect
(make-line pt15 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt26 0.0 )
Nil
))
(setq pt16(polar
pt25
(chg-quad ( - 0.0 ANG21
))
( - L38 )
))
(setq pt63(polar
pt25
(chg-quad ( - 0.0 ANG21
))
( - L40 )
))
(setq pt19(intersect
(make-line pt63 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
(make-line pt62 (chg-quad ( - 0.0 ANG21
)) )
Nil
))
(setq pt50(polar
pt25
(chg-quad ( - 0.0 ANG21
))
( - L17 )
))
(setq pt64(polar
pt25
(chg-quad ( - 0.0 ANG21
))
( - L41 )
))
(setq pt22(intersect
(make-line pt61 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt64 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
Nil
))
(setq pt24(polar
pt25
(chg-quad ( - 0.0 ANG21
))
( - L39 )
))
(setq pt17(intersect
(make-line pt16 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
(make-line pt61 (chg-quad ( - 0.0 ANG21
)) )
Nil
))
(setq pt18(intersect
(make-line pt61 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt63 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
Nil
))
(setq pt20(intersect
(make-line pt62 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt50 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
Nil
))
(setq pt21(intersect
(make-line pt62 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt64 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
Nil
))
(setq pt23(intersect
(make-line pt61 (chg-quad ( - 0.0 ANG21
)) )
(make-line pt24 (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )))
Nil
))
(setq pt32(intersect
(make-line pt33 (chg-quad ( + 0.0 ANG9
)) )
(make-line pt54 0.0 )
Nil
))
(princ "Computed points\n")(gc)
(make_layer "0" 1)
(make_layer "cen" 1)
(make_layer "dim" 1)
(make_layer "0" 1)
(command "LINE" pt2 pt3 "" )
(setq ent1 (entlast))(command "LINE" pt3 pt4 "" )
(setq ent2 (entlast))(command "LINE" pt4 pt5 "" )
(setq ent3 (entlast))(command "LINE" pt5 pt6 "" )
(setq ent4 (entlast))(command "LINE" pt6 pt7 "" )
(setq ent5 (entlast))(command "LINE" pt7 pt8 "" )
(setq ent6 (entlast))(command "LINE" pt8 pt9 "" )
(setq ent7 (entlast))(setq ent8 (entlast))(command "LINE" pt9 pt10 "" )
(setq ent9 (entlast))(command "LINE" pt10 pt11 "" )
(setq ent10 (entlast))(command "LINE" pt11 pt12 "" )
(setq ent11 (entlast))(command "LINE" pt12 pt13 "" )
(setq ent12 (entlast))(command "LINE" pt13 pt1 "" )
(setq ent13 (entlast))(command "LINE" pt1 pt14 "" )
(setq ent14 (entlast))(command "LINE" pt14 pt15 "" )
(setq ent15 (entlast))(command "LINE" pt15 pt16 "" )
(setq ent16 (entlast))(setq ent17 (entlast))(command "LINE" pt16 pt17 "" )
(setq ent18 (entlast))(command "LINE" pt17 pt18 "" )
(setq ent19 (entlast))(command "LINE" pt18 pt19 "" )
(setq ent20 (entlast))(command "LINE" pt19 pt20 "" )
(setq ent21 (entlast))(command "LINE" pt20 pt21 "" )
(setq ent22 (entlast))(command "LINE" pt21 pt22 "" )
(setq ent23 (entlast))(command "LINE" pt22 pt23 "" )
(setq ent24 (entlast))(command "LINE" pt23 pt24 "" )
(setq ent25 (entlast))(command "LINE" pt24 pt25 "" )
(setq ent26 (entlast))(command "LINE" pt25 pt26 "" )
(setq ent27 (entlast))(command "LINE" pt26 pt27 "" )
(setq ent28 (entlast))(command "LINE" pt27 pt28 "" )
(setq ent29 (entlast))(command "LINE" pt28 pt29 "" )
(setq ent30 (entlast))(command "LINE" pt29 pt30 "" )
(setq ent31 (entlast))(command "LINE" pt30 pt31 "" )
(setq ent32 (entlast))(command "LINE" pt31 pt32 "" )
(setq ent33 (entlast))(command "LINE" pt32 pt33 "" )
(setq ent34 (entlast))(command "LINE" pt33 pt34 "" )
(setq ent35 (entlast))(command "LINE" pt34 pt35 "" )
(setq ent36 (entlast))(command "LINE" pt35 pt36 "" )
(setq ent37 (entlast))(command "LINE" pt36 pt2 "" )
(setq ent38 (entlast))(command "LINE" pt37 pt34 "" )
(command "LINE" pt30 pt37 "" )
(command "LINE" pt5 pt11 "" )
(command "LINE" pt29 pt35 "" )
(command "LINE" pt38 pt36 "" )
(command "LINE" pt34 pt38 "" )
(command "LINE" pt39 pt30 "" )
(command "LINE" pt28 pt39 "" )
(command "LINE" pt40 pt12 "" )
(command "LINE" pt10 pt40 "" )
(command "LINE" pt41 pt6 "" )
(command "LINE" pt4 pt41 "" )
(command "LINE" pt27 pt2 "" )
(command "LINE" pt33 pt45 "" )
(command "LINE" pt31 pt45 "" )
(command "LINE" pt3 pt13 "" )
(command "LINE" pt7 pt46 "" )
(command "LINE" pt6 pt47 "" )
(command "LINE" pt10 pt47 "" )
(command "LINE" pt9 pt46 "" )
(draw-cline pt37 174.34095 0.0 )
(draw-cline pt55 175.11205 0.0 )
(draw-cline pt50 168.07686083(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) )) )
(setq *detailing* T) (init refpt)
(setq L42 27.55608 )
(command "DIM1""VERT" pt1 pt55 (setq pt65(polar
pt1
0.0
( - L42 )
)) "")
(setq L43 29.53119 )
(command "DIM1""VERT" pt26 pt37 (setq pt66(polar
pt26
0.0
( - L43 )
)) "")
(setq L44 6.41380039 )
(command "DIM1""HORIZ" pt3 pt4 (setq pt67(polar
pt3
1.57079633
L44
)) "")
(setq L45 5.40968956 )
(command "DIM1""HORIZ" pt13 pt40 (setq pt68(polar
pt13
1.57079633
( - L45 )
)) "")
(setq L46 11.43410949 )
(command "DIM1""HORIZ" pt13 pt9 (setq pt69(polar
pt13
1.57079633
( - L46 )
)) "")
(setq L47 20.59085 )
(command "DIM1""VERT" pt3 pt13 (setq pt70(polar
pt13
0.0
( - L47 )
)) "")
(setq L48 6.7094 )
(command "DIM1""VERT" pt7 pt9 (setq pt71(polar
pt9
0.0
L48
)) "")
(setq L49 36.1172 )
(command "DIM1""VERT" pt41 pt40 (setq pt72(polar
pt40
0.0
L49
)) "")
(setq L50 20.99459062 )
(command "DIM1""ROTATED"(r2d (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))) pt24 pt23 (setq pt73(polar
pt24
(chg-quad ( - 0.0 ANG21
))
L50
)) "")
(setq L51 18.23877627 )
(command "DIM1""ROTATED"(r2d (chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))) pt22 pt21 (setq pt74(polar
pt21
(chg-quad ( - 0.0 ANG21
))
L51
)) "")
(setq L52 14.10953871 )
(command "DIM1""ROTATED"(r2d (chg-quad ( - 0.0 ANG21
)) ) pt23 pt17 (setq pt75(polar
pt17
(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))
( - L52 )
)) "")
(setq L53 38.68572785 )
(command "DIM1""ROTATED"(r2d (chg-quad ( - 0.0 ANG21
)) ) pt21 pt19 (setq pt76(polar
pt19
(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))
( - L53 )
)) "")
(setq L54 25.49620087 )
(command "DIM1""ROTATED"(r2d (chg-quad ( - 0.0 ANG21
)) ) pt25 pt50 (setq pt77(polar
pt50
(chg-quad (+ 1.5707963(chg-quad ( - 0.0 ANG21
)) ))
L54
)) "")
(setq L55 38.6582 )
(command "DIM1""VERT" pt26 pt1 (setq pt78(polar
pt1
0.0
( - L55 )
)) "")
(setq L56 35.1699 )
(command "DIM1""VERT" pt15 pt14 (setq pt79(polar
pt14
0.0
L56
)) "")
(setq L57 29.83428318 )
(command "DIM1""HORIZ" pt1 pt14 (setq pt80(polar
pt14
1.57079633
( - L57 )
)) "")
(setq L58 100.0 )
(setq pt81(polar
pt8
0.0
( - L58 )
)) (setq L59 100.0 )
(setq pt82(polar
pt8
(chg-quad ( + 0.0 ANG9
))
( - L59 )
)) (command "LINE" pt8 pt81 "" )
(setq ent39 (entlast))(command "LINE" pt8 pt82 "" )
(setq ent8 (entlast))(command "DIM1""ANGULAR" (list ent39 pt81 ) (list ent8 pt82 ) (midpt pt81 pt82 ) "" "" )
(setq L60 100.0 )
(setq pt83(polar
pt15
(chg-quad ( - 0.0 ANG21
))
L60
)) (setq L61 100.0 )
(setq pt84(polar
pt15
0.0
( - L61 )
)) (command "LINE" pt15 pt83 "" )
(setq ent17 (entlast))(command "LINE" pt15 pt84 "" )
(setq ent40 (entlast))(command "DIM1""ANGULAR" (list ent17 pt83 ) (list ent40 pt84 ) (midpt pt83 pt84 ) "" "" )
(command "DIM1""DIMASZ" 3.0 )
(command "DIM1""DIMTXT" 3.0 )
(command "DIM1""UPDATE"(getset) "" )
( command "CHANGE""P" "" "LAYER" *dim-layer* )
(command "PEDIT"(list ent1 pt1 ) "Y""J"
ent1
ent2
ent3
ent4
ent5
ent6
ent7
ent9
ent10
ent11
ent12
ent13
ent14
ent15
ent16
ent18
ent19
ent20
ent21
ent22
ent23
ent24
ent25
ent26
ent27
ent28
ent29
ent30
ent31
ent32
ent33
ent34
ent35
ent36
ent37
ent38 "" "X")
(setq ent41 (entlast))(command "SELECT" ent41 "" )
(command "HATCH""U""45.0" "2.0" "" "P" "" )
(rotate-it refpt refangle)
(princ "\n Drawing created by a ParaDraft application")(mode 1) ( setq refpt nil
pt1 nil
pt2 nil
pt3 nil
pt4 nil
pt5 nil
pt6 nil
pt7 nil
pt8 nil
pt9 nil
pt10 nil
pt11 nil
pt12 nil
pt13 nil
pt14 nil
pt15 nil
pt16 nil
pt17 nil
pt18 nil
pt19 nil
pt20 nil
pt21 nil
pt22 nil
pt23 nil
pt24 nil
pt25 nil
pt26 nil
pt27 nil
pt28 nil
pt29 nil
pt30 nil
pt31 nil
pt32 nil
pt33 nil
pt34 nil
pt35 nil
pt36 nil
pt37 nil
pt38 nil
pt39 nil
pt40 nil
pt41 nil
pt42 nil
pt43 nil
pt44 nil
pt45 nil
pt46 nil
pt47 nil
pt48 nil
pt50 nil
pt52 nil
pt53 nil
pt54 nil
pt55 nil
pt56 nil
pt57 nil
pt58 nil
pt59 nil
pt60 nil
pt61 nil
pt62 nil
pt63 nil
pt64 nil
pt65 nil
pt66 nil
pt67 nil
pt68 nil
pt69 nil
pt70 nil
pt71 nil
pt72 nil
pt73 nil
pt74 nil
pt75 nil
pt76 nil
pt77 nil
pt78 nil
pt79 nil
pt80 nil
pt81 nil
pt82 nil
pt83 nil
pt84 nil
L1 nil
L2 nil
L3 nil
L4 nil
L5 nil
L6 nil
L7 nil
L8 nil
L10 nil
L11 nil
L12 nil
L13 nil
L14 nil
L15 nil
L16 nil
L17 nil
L18 nil
L19 nil
L20 nil
L22 nil
L23 nil
L24 nil
L25 nil
L26 nil
L27 nil
L28 nil
L29 nil
L30 nil
L31 nil
L32 nil
L33 nil
L34 nil
L35 nil
L36 nil
L37 nil
L38 nil
L39 nil
L40 nil
L41 nil
L42 nil
L43 nil
L44 nil
L45 nil
L46 nil
L47 nil
L48 nil
L49 nil
L50 nil
L51 nil
L52 nil
L53 nil
L54 nil
L55 nil
L56 nil
L57 nil
L58 nil
L59 nil
L60 nil
L61 nil
)
(gc) (princ) ; Program generated at : -- 16:56:47